package com.stgy.lease.model.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonValue;
import com.stgy.lease.model.base.BaseTypeEnum;
import lombok.Getter;

/**
 * ClassName:FacilityInfoTypeEnum
 * Package:com.stgy.lease.model.enums
 * Description:
 *
 * @Author:helei
 * @Create:2024/8/30 - 9:45
 */
@Getter
public enum FacilityInfoTypeEnum implements BaseTypeEnum {

    APARTMENT(1,"公寓"),
    ROOM(2,"房间");

    @JsonValue //jackson提供的注解，可以将指定枚举类的那个属性 作为转换json的值
    @EnumValue //mp提供的注解，用来给枚举对象接收属性值的注解
    private Integer code;//type值 1 2
    private String name;//描述信息 公寓 房间

    FacilityInfoTypeEnum(Integer code,String name) {
        this.code = code;
        this.name = name;
    }
}
